DXY Solutions Interview Question

Object oriented design question (cracking the coding interview would be helpful in preparation)