Electronic Arts interview question

General sorting algorithm