Syncfusion Interview Question

Finding odd and even numbers in given array, in between some range