Capgemini Interview Question

Questions in aptitude were from basic maths. Questions in Pseudo code round was basic codes in C++, C, Java and from given code we have to submit the output.