Tech Mahindra Interview Question

pattern question