Solve Rotting Oranges and Bus Walk Reachability | Amazon Interview Question