Capgemini Engineering interview question

Technical Question