Some estimates say artificial intelligence could replace hundreds of millions of jobs in the not-too-distant future. If that happens, how will people make ends meet?