Apple interview question

1. String reversal 2. Bit manipulation