Pergunta de entrevista da empresa PayPal

Knowledge questions, Simple programming questions + follow ups: reverse a word, reverse a string, reverse words in a string