AKUNA CAPITAL interview question

3 programming questions: two easy questions and one difficult question