Cheapest Way to Run a Queue With Priority Jobs

Company: Cognizant_IITH_1nov

Difficulty: medium