Getting TLE in Test-Case:1

What can be optimised??

Send me your code id. Then only I can tell you what you are missing.