Smarkets interview question

Q3 was a bidirectional graph question