Coretex Interview Question

How do you implement sorting as problem solving approach