Terralogic interview question

programme for reverse the array and string, problem on some sorting algorithm,