I'm in the process of improving my coding style and performance hence I decided to delve into bit manipulation onHackerrank. I thought the question was straight forward but on large input, my solution's performance declines. How do I improve it? Any smart tricks to solve the below question ...