Pergunta de entrevista da empresa Anduril

Find minimum distance between two words in a list