A four-month-old puppy who fell into a deep well in central Istanbul was eventually lifted out with the help of a robotic arm designed by high school students.