A cat became a legend known as "Sam the Unsinkable" after surviving on three battleships that sank during World War II.