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.