AKUNA CAPITAL interview question

there are three coding questions, all pretty hard