Nested List In Python Hackerrank Solution, Consider a list (list = []).