Ingenico Interview Question

Create a pseudo algorithm based on some sorting requirement