PhonePe Interview Question

even loop and run loop