Problem in my code?

It prints only the first value of output. Why so ?
I have implemented a separate checker function to arrange the list in odd-even fashion.