Domanda di colloquio di Cyient

Given a logical problem to solve through coding