Find the Town Judge

Implement solve for Find the Town Judge. Return the required output for the provided arguments.

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

Find the Town Judge

Implement `solve` for **Find the Town Judge**. Return the required output for the provided arguments.