結果 : explain min max algorithm with suitable example