How do we solve a problem in which arrival time and departure time of many flights are given (also source and destination of each flight are given) and we have to find shortest distance between two stations.
There are multiple flights possible from a destination.