SecPod Technologies interview question

plaindrome(sentence) code Reverse the words in a given string eg: input_str = "This is a simple program" output_str = "sihT si a elpmis margorp"