To lock the screen on your iPad, all you need to do is press the Power (Top) button once, and the screen will go off and lock immediately; however, if you want it to lock automatically, then go to Settings > Display & Brightness > Auto, Lock and set the timer as you like.