An 18-year-old has described the terrifying moment he escaped a huge fire that broke out in the building he was living in.