Pregunta de entrevista de FDM Group

Please solve this math question