AKUNA CAPITAL Interview Question

nothing difficult, but be clear when you explained how you did this problem