Add one more solution without recursion to connect adjacent