{('USD', 'INR'): 83.0}. Write convert(rates, amount, src, dst) that uses the direct rate, the inverse of the reverse pair, or a single-hop bridge through USD when neither direct form exists — returning None if even that fails. Round to 2 decimals.convert({('USD', 'INR'): 83.0, ('USD', 'EUR'): 0.9}, 100, 'EUR', 'INR')9222.22
EUR→USD via inverse (÷0.9), then USD→INR (×83).
Inverse: 1 / rates[(dst, src)].
Bridge: convert to USD, then USD to dst, reusing your own logic.