HARMAN Interview Question

C++ question and programing they have asked.