SAP interview question

print odd and even numbers using threads in sequential order