https://practice.geeksforgeeks.org/problems/rotten-oranges/0