Irish Prime Minister Leo Varadkar said he believes a solution can be reached to avoid a hard border on the island of Ireland after the U.K. leaves the European Union.