Automation Anywhere interview question

Write a program to read a file in parallel by 5 different threads and update the read values into the database? Each thread will read different sections of the file.