package hackerrank;

import java.util.Scanner;

/**
 * https://www.hackerrank.com/challenges/angry-children
 */
public class MaxMin {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // TODO
    }
}

@@ -136,108 +136,410 @@
    p
-ublic static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        // TODO
+rivate static int maxMin(int%5B%5D array, int k) %7B%0A        // TODO%0A        return 0;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        int k = in.nextInt();%0A        int%5B%5D array = new int%5Bn%5D;%0A        for (int i = 0; i %3C n; i++) %7B%0A            array%5Bi%5D = in.nextInt();%0A        %7D%0A        System.out.println(maxMin(array, k));
 %0A   

Update Max Min