printers: Extract common codes in LaTeXPrinter
printers: Extract common codes in LaTeXPrinter

Simplified _print_Max and _print_Min code to a
single function.

Fixes https://github.com/sympy/sympy/issues/14044

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy