AKUNA CAPITAL Interview Question

two code problem, and some python question