In class, we learned templates and their usage but we took the example of max3:
template T max3(T x, T y, T z){ if (x>y && x&g