Vinculum Solutions interview question

core java, few good logical questions