AKUNA CAPITAL Interview Question

basic algorithm