Added random min/max problem solution