Certainly! Here’s a restructured and heavily rewritten version of the content while preserving the HTML tags:
“`html
Link all the islands by constructing bridges according to the provided numbers. For each island, build the specified number of bridges from/to it. Bridges can only connect two islands in a vertical or horizontal direction, with a maximum of two bridges allowed between any pair of islands.
“`



