AWS Elemental interview question

In C, reverse a string like "Hello there" --> "there Hello"

Interview Answer

Anonymous

Apr 3, 2019

I kind of worked out an answer using a bunch of offsets into the string, but it wasn't great. I can do it in Python: ' '.join(strin.split(' ')[::-1])