Pergunta de entrevista da empresa GridCure

A math question solvable in any programming language.