This solution is buggy


#1

Same problem in leetcode https://leetcode.com/problems/total-hamming-distance.

Why 2XY required?! it’s just XY.