Capgemini Engineering interview question

how to compare two structure?