AKUNA CAPITAL Interview Question

Mental math + Coding challenge