HCLTech interview question

Draw a pattern