bp interview question

Coding based technical interview that lasted about 2 hours