Anonymous Interview Question

Some questions based on for loop and while loop