Two Sum Algorithm Javascript Interview Questions