Add solution to problem

Done! Added the output.txt file as well.
This is a great habbit to get into.