Added solution to problem 22 along with its input file.