InterviewBit Problems   MATH_BUG02 : Solved

About the MATH_BUG02 : Solved category (1)
Bug in checking Correctness (2)
Consider A = 1, the pair of values (0,1) comply with the result. This should have (3)
Just single letter change (1)
Set initial value of b as a (1)
Add a<=b in the if statement (1)
Minor changes in the code (1)
Solution can be optimized to O(n) (1)
More efficient solution (1)
Just add a<=b in if statement (1)
We only need to run the loop till sq root of A. a and b should be less than eq to square root of A (1)
Just change the place of return (1)
Idea for the test case (1)