Question d’entretien chez SAP

Sorting an array. IRCTC system design. Core java question like comparing two objects.