After taking the elevator to the top floor (ADS headquarters), you will find yourself in front of a closed door. To open it, you need a four-digit code.
To find out the combination, you need to look around the floor. Start in the room next to the locked door. There will be a photograph with a number.
The other three photographs are in a large office on the other side of the floor. As before, explore them to automatically add them to your "collection".
You can now return to the locked door. Note that the photos are now visible on the wall.
Correct combination:
Remember - the combination is random. Check the photos that have appeared around the castle and use them to open the door.