Design an in-memory database to handle transactions | Hello Interview