Microsoft Interview Question

Medium leetcode problem and Debug an existing application problem