adds ruby solution for problem 5, needs refactoring
Merge pull request #5 from vabacumov/problem_5

adds ruby solution for problem 5, needs refactoring