Hackerrank - Greedy - Jim and the Orders
Jim's Burgers has hungry burger fans waiting in line. Each unique order, , is placed by a customer at time , and the order takes units of time to process. Given the information for all orders, can you find and print the order in which all customers will receive their burgers? If two or more orders are fulfilled at the exact same time , sort them by ascending order number.