Pergunta de entrevista da empresa Aquis Exchange

A mathematics and a coding question