Question d’entretien chez Visa Inc.

array list swapping and trying to find the minimum value