Capgemini interview question

Programming basics