Pergunta de entrevista da empresa AWS Elemental

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

Resposta da entrevista

Sigiloso

3 de abr. de 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])