Leetcode 2534. Time Taken to Cross the Door | Hello Interview