Dstillery interview question

An programming puzzle in Java.