Sorts the given array and returns the required position's value.Enter a sequence of numbers : Enter a value within the length of the given sequence: