Q3 solved assuming that the words can come in any direction
Merge branch 'master' of github.com:leonardo7/code-foo-2013