For this Question: Given a string s, your task is to find the total number of unique characters in a string.The first line of the input contains a string s, <b>Note s can also contains white spaces</b>

<b>Constraints</b>
1 <= s. length() <= 10<sup>5</sup>Print the total number of unique characters.Sample Input 1:
newton School

Sample Output 1:
10, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    public static void main (String[] args)throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        HashSet<Character> set = new HashSet<>();
        for(int i=0;i<str.length();i++){
            set.add(str.charAt(i));
        }
        System.out.print(set.size());
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?