AKUNA CAPITAL interview question

around medium to hard hackerrank problems