Write a program that exchanges bits {p, p+1, …, p+k-1) with bits {q,
q+1, …, q+k-1} of given 32-bit unsigned integer.

This is a task from the third homework Operators And Expresions in
Telerik Academy. It is quite detailed and can better understand bitwise
operations