IBM interview question

sorting algorithms , try catch in java