Cahn–Ingold–Prelog priority of carboxylic group versus ortho carboxylic acid
When using the Cahn–Ingold–Prelog (CIP) priority system and the ‘Sequence Rules’, double bonds are split into two bonds and the doubly bonded atoms are duplicated.  

Thus  

  

is treated as  



where (O) and (C) are duplicate representations of the atoms at the other end of the double bond;  

whereas                    



is treated as  



Therefore, the name of the structure that is given in the question is (2​E)-3-bromo-3-iodo-2-(trihydroxymethyl)prop-2-enoic acid.