ION Group interview question

Puzzle question.. Oops concept.. Question based on data structures