@@ -0,0 +1,920 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0A/**%0A*   Solution to https://www.hackerrank.com/challenges/funny-string/%0A*/%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A%0A        int tests = readInt(in);%0A%0A        for (int i = 0; i %3C tests; i++) %7B%0A            String line = in.nextLine().trim();%0A            int n = line.length();%0A%0A            boolean funny = true;%0A%0A            for (int j = 1; j %3C n; j++) %7B%0A                int a = Math.abs(line.charAt(j) - line.charAt(j - 1));%0A                int b = Math.abs(line.charAt(n - j) - line.charAt(n - j - 1));%0A%0A                funny &= a == b;%0A            %7D%0A%0A            System.out.println(funny ? %22Funny%22 : %22Not Funny%22);%0A        %7D%0A    %7D%0A%0A    private static int readInt(Scanner in) %7B%0A        return Integer.parseInt(in.nextLine().trim());%0A    %7D%0A%7D%0A

Create funny-string.java