The first two terms A and B are in geometric series, the code is supposed to find the nth term of the GP. It is getting executed for few test cases but getting failed for the te