IBM interview question

Core java, data structure, algorithm