Capgemini interview question

fromulas