State Farm Interview Question

Implement priority queue using this horribly messy coding environment instead of one of the ones that actually work well, and you have to do it in JavaScript, Python, or Go.