Pergunta de entrevista da empresa AKUNA CAPITAL

Two algorithms/coding questions, three math questions