Had a phone interview with Toast for Senior Software Engineer, I would like help on how to actually solve the last part.
Part 1: Reverse a string
abc -> cba
Part 2: Reverse the words in a string
practice makes perfect -> perfect makes practice
Part 3: Reverse words in a string, but keep non-alphanumeric character placement. Asked about ' and was told we can count that with alphanumeric
I'm great, thanks! -> Thanks I'm, great!