Keys and Rooms

Implement solve for Keys and Rooms. Return the required output for the provided arguments.

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

Keys and Rooms

Implement `solve` for **Keys and Rooms**. Return the required output for the provided arguments.