Harvard's CS50 Problem Set 7