Logic puzzles - functions

95