Microsoft Interview Question

Basic algorithm and data structures,