Meta Interview Question

First question was given two sorted array lists, merge them into one single sorted list. The second question was given a list of tasks, return the minimum time that is needed to finish all tasks.(Like task-scheduler). The only difference is that the original positions of tasks remain the same.