👉 In computer science, a "peg" is a type of data structure used for storing and retrieving elements from an array or list. The term "pegged" refers to the fact that the elements in the array are stored one by one, with each element being a separate entity, rather than as part of a larger container like a linked list or stack. For example, consider an array `arr` containing 4 elements: `a`, `b`, `c`, and `d`. If