Microsoft Interview Question

Puzzles can be tricky, ability to solve problems quickly is generally what MS looks for.