sentence: history she was built as a type 207 submarine by rheinstahl-nordseewerke of emden , germany in 1965 for the royal norwegian navy and served for 25 years as hnoms uthaug before being purchased by denmark in 1990 , and renamed after the seal .