Bitwise And Hackerrank Solution For Loop