List In Python Hackerrank Solution