Finish reverse bits interview problem as stated.