Apple spent 10 years trying to launch a car. China's Xiaomi just did it in 3.