Funny thing is, and I don't know if you two have realized, that if you change a test case with 3 resulting words to something like this,our codes will all fail miserably

[Test 8]
Dictionary=ones,about,other,ideas,outside,against,students,added,education
Input=a,s
Output=11 about outside ideas

_________________________