Find oldest living parents from an array of objects.

Assignment 3 of 2. Find oldest living parents from an array of objects.
this works for a set number of tabs but how can we make it work for an n number of tabs?