8x8 Interview Question

General question on data structure, javascript and java.