Solution for International Trade coding problem