Anduril Interview Question

Find minimum distance between two words in a list