@@ -0,0 +1,943 @@
+package java_problems.beginner;%0A%0Aimport java.util.Scanner;%0A%0Apublic class TanuAndHeadbob %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09Scanner sc = new Scanner(System.in);%0A%09%09int numCases = Integer.parseInt(sc.nextLine());%0A%09%09for (int i = 0; i %3C numCases; i++) %7B%0A%09%09%09@SuppressWarnings(%22unused%22)%0A%09%09%09int numGestures = Integer.parseInt(sc.nextLine());%0A%09%09%09char%5B%5D gestures = sc.nextLine().toCharArray();%0A%09%09%09System.out.println(determineOriginFromGestures(gestures));%0A%09%09%7D%0A%09%09sc.close();%0A%09%7D%0A%09%0A%09private static String determineOriginFromGestures(char%5B%5D arr) %7B%0A%09%09int index = 0;%0A%09%09boolean isIndian = false;%0A%09%09boolean yesIsPresent = false;%0A%09%09while (index %3C arr.length) %7B%0A%09%09%09if (arr%5Bindex%5D == 'I') %7B%0A%09%09%09%09isIndian = true;%0A%09%09%09%09break;%0A%09%09%09%7D else if (arr%5Bindex%5D == 'Y') %7B%0A%09%09%09%09yesIsPresent = true;%0A%09%09%09%7D%0A%09%09%09index++;%0A%09%09%7D%0A%09%09if (isIndian) %7B%0A%09%09%09return %22INDIAN%22;%0A%09%09%7D else %7B%0A%09%09%09if (yesIsPresent) %7B%0A%09%09%09%09return %22NOT INDIAN%22;%0A%09%09%09%7D else %7B%0A%09%09%09%09return %22NOT SURE%22;%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D

Add TanuAndHeadbob