Pergunta de entrevista da empresa AKUNA CAPITAL

3 programming questions: two easy questions and one difficult question