OYO Interview Question

The coding question was based on sorting algo for array