This question evaluates skills in graph modeling, algorithm design, data structure selection, dynamic updates, and consistency checking for weighted relations, focusing on computing implied conversion rates, detecting contradictory inputs, and reasoning about cycles and arbitrage.
Given a set of currency exchange relations such as 'A:B = 1:1.5' and 'B:C = 1:1.5' (meaning 1 A = 1.5 B and 1 B = 1.5 C), design algorithms and data structures to: (