American Express Interview Question

Write the code for a program to find the maximum value and a value greater than or equal to the minimum value.