Find K-th Largest and Longest Vacation | Meta Interview Question