Added a solution for the "NumberOfOnes" problem