problem statement: In Olympics, the countries are ranked by the total number of medals won. You are given six integers G1, S1, B1, and G2, S2, B2 , the number of gold, silver and bronze medals won by two different counties respectively. Determine which country is ranked better on the…