How do I reset the laptop to out of the box setting It keeps looping into diagnostics

Based off of the information you provided, I'd say there's a .001% chance you're going to get any useful help. Try giving a make and model to start.