The hidden cube() function performs long calculations and returns value in half a second. But your main program has to be finished in two seconds.
Your task is to perform the calculations concurrently and collect all values into the result array.