Numpy Array Append Element Javascript Interview