Infosys Interview Question

I have been asked about oops concepts, loops, infinite loop, conditional statements etc