Amazon Interview Question

Write code for Priority Queue. (1 Hr)