Brocade Interview Question

best data structure for implementing some random scenario