Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.
Given an array, print all alternate elements of the array i.e., elements at even indices starting with index 0.
The first line contains an integer T denoting the number of test cases. Each test case consists of two lines:
For each test case, print the alternate elements of the array separated by spaces.
1 <= T <= 100 1 <= N <= 10^4 0 <= arr[i] <= 10^5