Question d’entretien chez Microsoft

Searching algorithm for the second nearest word