Hi Keshav
I am Dave, I will help you with this.
1
Click your Start Button, then just type task and from the resulting list, open Task Schedular
Look through the tasks to see if one is set to trigger at around 11:00pm
2
If there was no tasks set at around that time, boot your PC into BIOS and check for any type of auto-off setting.