J.P. Morgan interview question

Print odd and even in separate thread with sync