Martin and the nuclear reactor-HackerBlock DCB

https://hack.codingblocks.com/app/dcb/1457
//what is the problem with the code as it’s giving TLE