solution to PENULTIMATE WORD https://www.codeeval.com/open_challenges/92/