A teenager that had been missing for four days has been found safe, police have confirmed.