I\'m trying to implement a partial brute force approach in python for Leetcode Beautiful Arrangements. I\'m struggling to update my "counter" variable during the r