Remove Duplicates
Problem Write a program that removes duplicate characters and outputs when a single lowercase character string is input. Each character in the stripped string retains the order of the original string. input A string is entered on the first line. output Prints a string with duplicate characters…