Infosys Interview Question

c++ some what tricky questions...