Apple interview question

Leetcode problems with binary search, heaps and stacks