How Morgan Stanley Tackled One of Coding’s Toughest Problems