Sort a list of strings in lexicographical order in Python
We are given a list of strings and our task is to sort them in lexicographical order, which means alphabetical order either from A to Z (ascending) or Z to A (descending). This is a common operation when organizing or comparing strings in Python. For example: Input: ["banana", "apple", "cherry", "da