Domanda di colloquio di MDP Infra (India)

One logic based coding question. sorry but i forgot