I have to implements a function that takes a string as an input and finds the non-duplicate character from this string.
So an an example is if I pass string str = \"
Revised version of the first answer i.e: You don't need ToCharArray() function for this to work.
public static string RemoveDuplicates(string input) { return new string(input.Distinct().ToArray()); }