Intel Corporation interview question

Write a class that can read or write to memory addresses of any attached peripheral.