Microsoft interview question

Code out a solution to a specific problem.