Lohika Interview Question

C++ problem solving in real time