Affinity interview question

It was a while ago so I do not remember, but it was a basic algorithms question.