Sony interview question

data structures