Action Engine interview question

Logic puzzles