Continental interview question

OOP C++ design patterns Write function to find maximum in array