Xoriant Interview Question

write a program using thread.