WeWork Inc forecast fourth-quarter revenue below estimates and said it will exit about 40 underperforming U.S. locations, as the workspace provider deals with high expenses and a strong U.S. dollar.