Cognizant interview question

Print every nth number in an array

Cognizant Interview Question: Print every nth number in an array | Glassdoor