I want to use a function that takes a string sequence of either numbers or letters and returns those values in an array with no back to back duplicates but can have duplicat