How to make lock and unlock button for levels?

variable type of level array?