Dynamic Array Hackerrank Solution In Python A Namespace