Micron Technology interview question

Find the second highest salary. Sort array elements without inbuilt functions. String manipulations