Lei Jun set out to build the ‘Apple of China.’ Xiaomi’s car business is now outpacing Tesla and Rivian.