Hilti Group Interview Question

it was a data structures and algorithms related question