Add solution to Single Number II from Leetcode.