Leetcode 526. Beautiful Arrangement | Hello Interview