Capgemini Engineering interview question

Not so difficult questions asked in interview