Pregunta de entrevista de Expedia Group

Math and some programming problems, emphasis on math.