Question d’entretien chez LinkedIn

Given a stack, sort it.