Pregunta de entrevista de Susquehanna International Group

solve math probs from OA