Bloomberg interview question

Heap stuff for tracking max stock values, stack parentheses balancing