Frage im Vorstellungsgespräch bei Zenefits

Given an integer array, return the array that would come previously in lexographical order