GlobalLogic interview question

write a program to print even and odd numbers using two threads