Highlands interview question

Based on oops collections data structure