The Code Puzzle: Logic and thinking tests are among the most popular on social networks, their aim being to improve…