Add solution to 'Number of ones'