Adobe Interview Question

2D Matrix traversal, min heap, max heap, Trees