Capgemini Interview Question

They asked to write a code/algorithm to print a particular pattern of numbers.

Interview Answer

Anonymous

Jul 31, 2019

I answered it correctly quite easily within few minutes. As, there was no limitation of choice of programming languages, I preferred to write the code in C++ language.