The next president of the United States will inherit some of the greatest foreign policy challenges in American history — an overstretched military, frayed alliances, and wars on…