Beacon Hill Interview Question

Java based , c++ based, +