Caradigm Interview Question

Represent days of a months using two cubes