Leetcode 3008. Find Beautiful Indices in the Given Array II | Hello Interview