Problem 4: two ways
..