http://www.nxcoding.com/archives/leetcode-daily-2901-longest-subsequence-with-hamming-distance-one