Apple interview question

Leetcode style coding problems (array and bit manipulation)