AKUNA CAPITAL interview question

Order matching question, not like leetcode at all.