Question d’entretien chez HCLTech

How can you sort a list using streams?