Solution to UVa 11420 Chest of Drawers