Charlie Puth wrote "See You Again" in ten minutes in honor of a friend who died