Solution to challenge 14

Add test for challenge 14