Leetcode 3595. Once Twice | Hello Interview