Leetcode 1040. Moving Stones Until Consecutive II | Hello Interview