just create a method of min(int i, int j) and max(int i, int j)
in min method, return the variable that has the smaller value
and in max method, return the variable with higher value