Hackerrank Solution

Code Copied