Add test case for task 2. Handle the case where one word is the prefix of another word. (i.e. 'cat' will go before 'cathode')