Implement solve for Is Graph Bipartite?. Return the required output for the provided arguments.
solve
Implement `solve` for **Is Graph Bipartite?**. Return the required output for the provided arguments.