@@ -0,0 +1,754 @@
+//https://www.hackerrank.com/challenges/funny-string%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A  public static void main(String%5B%5D args) throws IOException%7B%0A    StringBuffer sb = new StringBuffer();%0A    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A    %0A    //For each test case%0A    for(byte T = Byte.parseByte(br.readLine()); T %3E 0; --T)%7B%0A      %0A      //Check if input is funny%0A      sb.append(isFunny(br.readLine().toCharArray()) ? %22Funny%5Cn%22: %22Not Funny%5Cn%22);%0A    %7D%0A    System.out.print(sb);%0A  %7D%0A  %0A  private static boolean isFunny(final char%5B%5D S)%7B%0A    for(int i = 0, n = S.length - 2; i %3C n; ++i, --n)%7B%0A      if(Math.abs(S%5Bi%5D - S%5Bi+1%5D) != Math.abs(S%5Bn%5D - S%5Bn+1%5D))%7B%0A        return false;%0A      %7D%0A    %7D%0A    return true;%0A  %7D%0A%7D%0A

Create funny-string.java