Arm Interview Question

bit counting programing.. writing it directly.