Accenture Interview Question

Overriding rules they asked