Write a method that translates a text to Pig Latin and back. English is translated to Pig Latin by taking the first letter of every word, moving it to the end of the word and adding 'ay'. If the word starts with a vowel, the first letter is not moved, and only 'ay' is added on to the end of that word.
Create a method named transform_pig_latin that accepts a string as a parameter.
"The quick brown fox" => "Hetay uickqay rownbay oxfay"