Pergunta de entrevista da empresa Deloitte

2 coding questions , pattern printing and question related to stacks