Shopee interview question

Implement a priorityqueue using an array.