what needs to be corrected in the below code such that it prints the data in the lexicographical order.
I am not getting the duplicate while using the set but the answer is not coming in lexicographical order.
Below is the link, kindly check and correct the python code