Checks if there exists a solution using either FLSM or VLSM.