Question d’entretien chez Cognizant

Sort array based on stream java8