Imagine you are playing with boxes that have different colors inside. You want to know how many colors each box can have, but you can only see the total number of colors when you add up all the boxes. Someone tells you that you can figure out the number of colors in each box by flipping the boxes over and looking at the number of holes on the bottom.
This is similar to what happens in Pontryagin duality. Instead of boxes with colors, we have groups with operations (like addition, multiplication, or composition). To understand the properties of the group, we need to look at what the group does to other groups, just like we need to add up all the boxes to see the total number of colors.
Pontryagin duality is a way to "flip over" a group by looking at its functions. Every group has a set of functions that take in elements of the group and produce complex numbers (numbers with a real and imaginary part). These functions form a new group, called the dual group. If we flip over this dual group, we get back the original group.
Just like we can tell the number of colors in a box by looking at its holes, we can tell the properties of the group by looking at the functions that are part of its dual group. For example, if the group is "nice" (meaning it's compact, abelian, and connected), then the dual group also has these properties.
This idea of flipping over a group to study its properties is called duality, and Pontryagin duality is a specific example of this for abelian groups.