Given all the pessimism about Apple Inc. these days, one might wonder why Warren Buffett’s Berkshire Hathaway Inc. is betting $1.1 billion on the company. But if sentiment on Wall Street is any guide, the Oracle of Omaha and his lieutenant have made a prescient play.