Orbitz Worldwide interview question

1. Leetcode Hard 2. Leetcode Medium