Question d’entretien chez MDP Infra (India)

One logic based coding question. sorry but i forgot