Ford Otosan Interview Question

A coding problem related to data structures