The master unlock code for a Samsung, or what is commonly known as a “force reboot code” , is a number you can dial to bypass your phone’s UI and make it do something immediately.
So, to make your Samsung reboot immediately, you need to dial 2767*3855# *2767*2878#.