Move 3 Matchsticks: Visual puzzles, often used to stimulate cognition and assess problem-solving abilities, are an engaging challenge for the…