Capgemini interview question

Rest app design using sorting