Started work on problem 1.

+ Added example pseudocode.