Leetcode 1622. Fancy Sequence | Hello Interview