Infosys Interview Question

regarding project c++