InComm interview question

datastructures , javascript, java