Javascript Push Array Elements Python Interview