Thoughtworks interview question

data structures related questions