Kth root failing two of the test cases

Can someone help me and tell me whats wrong with this code for solving the kth root problem.
Here is the code : https://ide.codingblocks.com/s/79628