Problem set 7 of CS50x