Smashing Boxes Interview Question

Asked to complete a code sample.