Complete first round of javascript#hamming