Fiserv Interview Question

OOPS concepts, Sorting