Microsoft Interview Question

Strings, math, arrays. Very interesting questions