Ford Otosan interview question

A coding problem related to data structures