Terralogic Interview Question

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