Added given example as test & basic implementation
Minor refactoring for readability. Expose problem solution via stdout.
Merge branch 'problem6'