Salesforce Interview Question

In an array of 0,1,2 sort them. Try and catch.