Sorry Pahi, but your code is pretty slow in some places.
Episode 11 - Done.