Cognizant interview question

I was asked to write pattern type of programs

Interview Answer

Anonymous

28 May 2019

I explained the logic