Powershell If Variable Contains Duplicate Leetcode