SAP Interview Question

print odd and even numbers using threads in sequential order