I want to build a five foot ladder for my 6 ft loft bed that's being cut down to 4ft tall because it's too close to my ceiling. My bed is going to be in front of my window which is on my shortest wall.

How do I build a ladder to meet these requirements?