Pregunta de entrevista de Capgemini

some question on maths (coding)