Pregunta de entrevista de Cognizant

2 Coding questions based on pattern and sequence