Write a function count number of 1s in the given number? function solve( a ){ //write your code here } Login to Submit
Input: 101 Output: 2 Input: 1911 Output: 3