https://www.codeeval.com/open_challenges/3/

score 100/100