redbus - LeetCode