Microsoft interview question

Strings, math, arrays. Very interesting questions