## Finding the the number at a given position in even odd array

Given a number N, an array is created by first adding all the odd numbers, and then adding all the even numbers below N, How do we find the number at a given position K? For example consider N = 10, the array is [1, 3, 5, 7, 9, 2, 4, 6, 8, 10], the…