Amazon Interview Question

How would you design OO classes that describe mathematical expression? How would you design a transcoding system?