A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, I=9......
Each string is coded as: Sum of (Square of Position of each letter in string)
CHINA = 3^3+8^2+9^2+14^2+1^2 = 351
JAPAN = 10^2+1^2+16^2+1^2+14^2 = 554
NEPAL = 14^2+5^2+16^2+1^2+12^2 = 622
EGYPT = 5^2+7^2+25^2+16^2+20^2 = 1355