Capgemini Engineering interview question

mostly technical stuff nothing much difficult if you are clear in basics.