Leetcode Check If Array Pairs Are Charged