Two Sum Algorithm Javascript Interviewbit