Actalent Interview Question

Number of 1 in an integer