Amazon Interview Question

Write code that handles a tasking system with custom prioritiy values