Assuming you’re not talking about a loan to do this (at which point you’ve reinvented indentured servitude), back when there was a smaller pool of college graduates it was easier to find a company that would pay for your education, some even offering bonuses if you completed it.