Microsoft Interview Question

I was asked a difficult question about an algorithm I had used in my project.