Pergunta de entrevista da empresa IvyMath

About a difficult problem I encountered in the past and how I resolved it.