Capgemini interview question

basics