For this Question: Adam and James are two very close friends and they ensure that everything that they own should be almost similar. Now they are purchasing new smartphones and they want to have their mobile number almost similar.
<b>Note:</b>
(i) Two phone numbers are almost similar if they are anagrams.
(ii) anagram strings are having the same set of characters.
 example: rama and amar are anagrams as they are having the same set of characters(a, a, m, r).

You are given the mobile numbers of Adam and James. Print True if their numbers are almost similar means anagrams else Print False.There are two strings A and B(Phone numbers of Adam and James) are given as input.

<b>Constraints</b>
Length of Phone Numbers = 10Print True if their mobile numbers are almost similar otherwise Print False.Sample Input:
9352091684 9368149502

Sample Output:
True

Explanation:
Here both the phone numbers are anagrams., I have written this Solution Code: import java.io.*;
import java.util.*;

public class Main{
    public static int solve(String[] tokens) {
        int a,b;
		Stack<Integer> S = new Stack<Integer>();
		for (String s : tokens) {
			if(s.equals("+")) {
				S.add(S.pop()+S.pop());
			}
			else if(s.equals("/")) {
				b = S.pop();
				a = S.pop();
				S.add(a / b);
			}
			else if(s.equals("*")) {
				S.add(S.pop() * S.pop());
			}
			else if(s.equals("-")) {
				b = S.pop();
				a = S.pop();
				S.add(a - b);
			}
			else {
				S.add(Integer.parseInt(s));
			}
		}	
		return S.pop();
	}

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        String A=sc.next();
		String B=sc.next();
		int[] cnt1=new int[10];
		int[] cnt2=new int[10];
		for(int i=0;i<10;i++){
            int ind1=A.charAt(i)-'0';
			int ind2=B.charAt(i)-'0';
            cnt1[ind1]++;
			cnt2[ind2]++;
		}
		for(int i=0;i<10;i++){
			if(cnt1[i]!=cnt2[i]){
				System.out.println("False");
				return;
			}
		}
        System.out.println("True");
		return;
    }


}, In this Programming Language: Java, Now tell me if this Code is compilable or not?