Coding question: Given the ages of people living in an area, find the most popular age of the group.
Implement most_popular_age(ages), which accepts a non-empty list of integers and returns the age occurring most frequently. If multiple ages are tied, return the smallest age.
def most_popular_age(ages):