Muziris Softech interview question

To get the output of Looping statement