Genpact Interview Question

Basic coding concepts like sorting logic.