@@ -0,0 +1,961 @@
+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/two-strings/%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 test = readInt(in);%0A%0A    outer:%0A        for (int i = 0; i %3C test; i++) %7B%0A            int%5B%5D counts = new int%5B127%5D;%0A%0A            String a = in.nextLine();%0A            String b = in.nextLine();%0A%0A            for (char c : a.toCharArray()) %7B%0A                counts%5Bc - 'a'%5D++;%0A            %7D%0A%0A            for (char c : b.toCharArray()) %7B%0A                if (counts%5Bc - 'a'%5D %3E 0) %7B%0A                    System.out.println(%22YES%22);%0A                    continue outer;%0A                %7D%0A            %7D%0A%0A            System.out.println(%22NO%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 two-strings.java