Capgemini interview question

C#