add problem2 solver, refactor class structure
Merge pull request #2 from YukiYano/problem2

Problem2