Infosys Interview Question

string question