Snapdeal founders agree to sell to Flipkart