added case when 3rd flight arrives with delay
parsed the time and returned hardcoded answer
added sort for the array to return a middle element, 3 tests pass
added a case when all flights arrive with delay, all tests pass
added a case with shuffled arrival times, all tests pass
added a case when all flights arrived in a random order, all pass
refactored the code