Berkshire Hathaway Inc. will be Bank of America’s largest stockholder and will receive a profit after announcing Friday it plans to purchase 700 million shares.