Two Pointer Algorithm Javascript Foreach With Index