Leetcode 667. Beautiful Arrangement II | Hello Interview