Kth root using binary search

I am facing time limit exceeded problem with my code. How can I optimise my solution?

Hey Megha, i guess your this doubt is resolved as you have posted it twice.