Create problem_2_version_2

solution without use of array
Merge pull request #14 from tng46/patch-1

Create problem_2_version_2