Unanet interview question

Q: Some leetcode style airport problem