American Express Interview Question

Write getters and setters for a class?