Goldman Sachs Interview Question

questions based on max/min heap and stack.