The Hackerrank Solution For List