Software AG Interview Question

print number sequentially using 2 thread. Map implementation