What is the meaning of Mastermind?

A person with an extraordinary intellect or skill that is markedly superior to his or her peers.

A person responsible for the highest level of planning and execution of a major operation.

To act in the role of mastermind.

Source: wiktionary.org