Frage im Vorstellungsgespräch bei Infosys

Write an optimized code to sort an array in ascending order