Two Pointer Algorithm Javascript Code With Harry