Amazon Interview Question

Implement a priority scheduler for an OS