KTH-ROOT problem

my code is not passing even one test case what is wrong with my code