Reverse Array In Python Hackerrank Solution