compare a string after shuffling with original string and adding a new char to the shuffled string. No need to optimize the code, just want one case of functioning code.
given an input output should match. Only want to see Engineering skills and does not have to be elaborate answers. Code must compile and run and must output a result.