Want to beat the stock market in 2024? Here’s how to do it, according to BofA.