Microsoft Interview Question

Code out a solution to a specific problem.