CharacterPair
A data class representing a pair of characters.
This class is implemented as a record in the JVM to optimize memory usage and ensure immutability. Each instance of this class stores two characters, referred to as "left" and "right".