Number Of Ones solution