What You Need
An Apple iOS device (iPhone, iPad).
Turn on iPad.
Navigate to home screen.
Click Guided Access under Learning.
Turn on Guided Access and Set Passcode.
You are done
NB. When you are ready to enable this, triple-tap the home button. To disable, triple-tap the home button once more and enter your passcode.