MIT OCW course 6.00 : Introduction to Computer Science and Programming, Problem Set 1.