problem 5 and...

removed a code duplication in arrays
Merge pull request #1 from ZsoltFabok/problem_5

problem 5