Source code of the fifth problem set in the CS50x Harvard course.