use a Hash Map to find Max Ponits on a Line