Connect all the islands with bridges. The number on an island is the number of bridges connecting to that island. Two islands can be connected by at most two bridges.