After getting to the 3rd floor you will be told to go back to the dining room to find the code. Go back to where you eat breakfast and look at the table by the window on the tray - the code is on there.
If you can’t be bothered with all that, the code is 3159.
Good luck!!