Get Last Task

Process tasks from both ends of an array using two pointers with async execution, tracking the last task before the pointers meet.

Asked in Uber frontend interviews