package hackerrank;

/**
 * https://www.hackerrank.com/challenges/richie-rich
 */
public class RichieRich {
    public static void main(String[] args) {

    }
}

package hackerrank;

import java.util.Scanner;

/**
 * https://www.hackerrank.com/challenges/richie-rich
 */
public class RichieRich {
    private static int largestPalindrome(String number) {
        // TODO:
        return 0;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        String number = in.next();
        System.out.println(largestPalindrome(number));
    }
}

Update Richie Rich