AKUNA CAPITAL interview question

Did the OA, Function based question, not leetcode style