Fusemachines Interview Question

A coding question related to Sorting