Microsoft Interview Question

Given an integer as input, return the number of 1s in the input's binary form.