https://www.geeksforgeeks.org/maximum-trains-stoppage-can-provided/