Software AG interview question

print number sequentially using 2 thread. Map implementation