How to fix redmi note 4 this device is locked |...

It was very annoying when a phone stuck on something or not working in this technology days.Just like that many of the redmi users...