Array.prototype.toSortedbeginnerconst words = ['cherry', 'apple', 'banana']
words.toSorted() // β ['apple', 'banana', 'cherry']Call toSorted() without arguments to sort strings alphabetically into a new array.
Calling toSorted() without a comparator defaults to lexicographic (alphabetical) ordering β the same default as sort.
Implement sortStrings which returns a lexicographically sorted copy of the input string array.