add solution to problem 002
Merge pull request #2 from Horx/master

add solution for problem 002