Find number of 1 appearence from 1 to n
Given an array of number, find the combination which make the smallest number.