Bitwise And Sum Hackerearth Solution