。
She enjoyed life on the ship.
Literal
She [topic-は] ship [possessive-の] life [object-を] enjoyed.
船の生活 uses の to link 'ship' and 'life' — 'life on/of the ship.' 楽しむ (たのしむ) means 'to enjoy' and takes a direct object with を, unlike its adjective counterpart 楽しい (fun, enjoyable). This is a common distinction: many Japanese adjective-verb pairs split the same concept between a state (楽しい, 'is fun') and an action (楽しむ, 'to enjoy it').