AKUNA CAPITAL interview question

BFS/Heap/design patterns if you are using java.