For Alibaba, an investment in Snapdeal (competes with Flipkart) could speed up the Chinese company’s expansion in India’s booming electronic-commerce market. For Foxconn, an investment would give the contract electronics maker a retail foothold in India, where it has experienced booming demand for smartphones.