Capgemini Engineering interview question

Not so tough,asked basics.