A 6-year-old Medway girl's message in a bottle was answered by the captain of a tall ship.