Infosys Interview Question

What to do if you get error in infinite loop