Reverse Each Word

Given a string, reverse each word of a string individually. For eg. if a string is "abc def", reversed string should be "cba fed".

Sample Input :
Welcome to Coding Ninjas
Sample Output:
emocleW ot gnidoC sajniN

Login to submit your solution

Fb dab53a1a64929320dc7425896aa73fd9e5512b6ab52e414ff5f3ebb5cecc73eb

Share Problem