BT Group interview question

Sql data structures and algorithms