Infosys Interview Question

General questions and c++ coding