Leetcode 2582. Pass the Pillow | Hello Interview