Bosch Interview Question

OOP basics, ways to maximize the efficiency of a function