4: Reverse string
Write a method that takes a string
and returns a reversed string
Example 1
Input: Bazinga
Output: agnizaB
Example 2
Input: Go ahead, make my day
Output: yad ym ekam ,daeha oG
Helpful article
Write a method that takes a string
and returns a reversed string
Example 1
Input: Bazinga
Output: agnizaB
Example 2
Input: Go ahead, make my day
Output: yad ym ekam ,daeha oG