Pregunta de entrevista de Tech Mahindra

Was asked to write Program of Pattern and do its dry run