Added a straight forward solution to P34.