MakeMyTrip needs to determine the minimum number of railway platforms required at a station so that no arriving train must wait. Given the arrival and departure time of every train, return the maximum number of trains present at the station simultaneously.
A platform is occupied from a train's arrival time through its departure time. If one train arrives at the exact moment another departs, treat the arrival as occurring first, so an additional platform is required.
Implement min_platforms(arrivals, departures), where:
arrivals is a list of integer times in HHMM format.departures is a list of integer times in HHMM format.arrivals[i] and departures[i] describe the same train.The input lists have equal lengths, and each train's arrival time is earlier than or equal to its departure time.
def min_platforms(arrivals, departures):