Dropbox interview question

It was an algorithm problem and I did not pass