Arm interview question

bit counting programing.. writing it directly.