Capgemini interview question

In pseudocode based on the output questions