Javascript Array Push To Front Of Arraylist Contains String Python