Design a class which receives a list of words in the constructor, and implements a method that takes two words_word1_and_word2_and return the shortest distance between these two words in the list. Your method will be called_repeatedly_many times with different parameters.
Example:
Assume that words =["practice", "makes", "perfect", "coding", "makes"].