<hackerrank> changing bits