Microsoft Interview Question

String manipulation. Array sorting. Summation.