Create a function that accepts an array of integers as input and returns a new array containing every nth integer.
The function prototype should be:
a) resample(int *input, int length, int st)
b) int[] resample(int[] input, int length, int st)
c) int * resample(const int *input, int length, int st)
d) resample(int[] input, length, st)