Dropbox interview question

Solve a software routine problem