EPAM Systems interview question

Coding on paper: read in a list and write sort it