Way to zero (Daily Coding Byte)

Question :
https://hack.codingblocks.com/app/dcb/1269

My Code :

I’m facing TLE for 1 testcase please help