Appareo Systems Interview Question

Coding exam question about loops