Pregunta de entrevista de AKUNA CAPITAL

Generally easy question about validating and then processing some data according to some rules.