Please solve the error in my code it is showing time limit exceed


please tell me the errors it and solve the errors