Pregunta de entrevista de Invenio

Java,SQL,OOPS Concepts, Small coding question on any known programming language.