Philips interview question

Python data structures and algorithms