EyeQ Tech interview question

write code for a sorting question