Samsung Electronics interview question

Btree