Tesla Interview Question

Multithreading problem with an array input