Pergunta de entrevista da empresa WebKul

Asked to print certain pattern.