HARMAN interview question

basic c, c++, data structures