Amazon Interview Question

Reverse bits in s string.