Rolustech Interview Question

Coding question for loop (very easy)