Domanda di colloquio di Cognizant

2 Coding questions based on pattern and sequence