My question is showing time limit


please can you tell a better solution

I have edited your code… Try to submit it now…