Shopee Interview Question

Implement a priorityqueue using an array.