Leetcode Weekly contest 371 - Hard - Maximum Strong Pair XOR II