Question d’entretien chez Capgemini

Write a logic for specific case in c#