Water gets really hot after 2 minutes in the shower for 5 minutes then goes normal
There's probably some heat exchange between pipes happening at some point, or you're getting backflow from the water heater(s). You'll need to investigate with your building manager and a plumber. There's not much we can say with the limited information you've provided.