Simple Pig Latin
Approach
split all words
iterates process-1
if words length equal to 1 and is not alphabet return words without processing
return (From the second letter of the word to the end) + (first letter of letter) + 'ay'
return process-2 join with space
Solution
Last updated
Was this helpful?