Script Execution with Nested Loops and Overflow Detection

Company: Visa_29Aug

Difficulty: medium