Amazon interview question

Write code that handles a tasking system with custom prioritiy values