Javascript Reverse Array Without Reverse Function In Python For Lists