For this Question: Given a string S, find the number of occurrences of its smallest character.Input contains a single string S.

Constraints:
1 <= |S| <= 100000
S contains english lowercase letters.Print the number of occurrences of smallest character of S.Sample Input
abcda

Sample Output
2

Explanation: Smallest character is a and it occurs 2 times., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main
{
    public static void main (String[] args) throws Exception
    {
        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(ir);

		String s = br.readLine();

		int[] arr = new int[26];

		for (int i=0; i<s.length(); i++) {
			arr[(s.charAt(i)-97)]++;
		}

		for(int i=0; i<26; i++) {
			if(arr[i] != 0) {
				System.out.println(arr[i]);
				break;
			}
		}
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?