CTO departing Walmart to lead Pinterest's engineering team