Laserfiche Interview Question

Pretty basic algorithms question, not terribly original/difficult.