Capgemini interview question

high IQ level questions then pseudo code rounds