Added solution to problem 3.

Signed-off-by: Andrew Coomes <ajc@ajcdrift.com>