The Hackerrank Solution For 30 Days Of Code