Form Biggest Number

I don’t know whats wrong in my code?


I am getting a TLE