Brocade interview question

best data structure for implementing some random scenario