Pregunta de entrevista de IPSY

Database manipulation problem using transactional memory management, that had to be coded using JavaScript, or any other language of my choice.