Hilti Group interview question

it was a data structures and algorithms related question