Shortest Bridge

Implement solve for Shortest Bridge. Return the required output for the provided arguments.

Examples
Input: [[0,1],[1,0]]
Output: 1
Hints

Shortest Bridge

Implement `solve` for **Shortest Bridge**. Return the required output for the provided arguments.