Pergunta de entrevista da empresa Cognizant

2 Coding questions based on pattern and sequence