AKUNA CAPITAL Interview Question

Two algorithms/coding questions, three math questions