Two Pointer Algorithm Javascript Array Methods With Examples