With only write(addr, data) and read(addr, &data) APIs at your disposal, how would you devise an algorithm to detect a shorted internal signal in a black box scenario?

Free for the first 3 answer contributors

Interview question asked to Design Verification Engineers interviewing at NVIDIA, GE Aviation, IBM and others: With only write(addr, data) and read(addr, &data) APIs at your disposal, how would you devise an algorithm to detect a shorted internal signal in a black box scenario?.