Atos-Syntel Interview Question

Basic c/c++