AKUNA CAPITAL interview question

Mental math + Coding challenge