This is a logic puzzle commonly known as either 'Bridges' or 'Hashi'.