Domanda di colloquio di Cognizant

Coding question where basic concepts of OOPs,loop are implemented