Write a function that returns a string in which firstname is swapped with last name.
"john McClane" --> "McClane john"
def name_shuffler(str)
str.split.reverse.join(' ')
end
Write a function that returns a string in which firstname is swapped with last name.
"john McClane" --> "McClane john"
def name_shuffler(str)
str.split.reverse.join(' ')
end