Microsoft Interview Question

hard algorithm questions