America must work with all nations to build stronger economies, Barack Obama wrote in the Economist.