Fun Logic Challenges: Today's logic challenge is a game that promises to be both fun and stimulating. The task is…