Added a header file to keep it organized. Got all the threads created successfully. Each thread will also sleep for its arrival time, and the main thread will join all the threads successfully.