Two Sum Algorithm Javascript Interview Preparation