This is CS50 course, Problemet 7