For this Question: Your friend and you took a true/false exam of n questions. You know your answers, your friend’s
answers, and that your friend got k questions correct.
Compute the maximum number of questions you could have gotten correctly.The first line of input contains a single integer k.
The second line contains a string of n (1 ≤ n ≤ 1000) characters, the answers you wrote down.
Each letter is either a ‘T’ or an ‘F’.
The third line contains a string of n characters, the answers your friend wrote down. Each letter
is either a ‘T’ or an ‘F’.
The input will satisfy 0 ≤ k ≤ n.Print, on one line, the maximum number of questions you could have gotten correctly.Sample Input
3
FTFFF
TFTTT

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



class Main {
	public static void main (String[] args)throws IOException {


            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int k = Integer.parseInt(br.readLine());
            String me = br.readLine();
            String myFriend = br.readLine();
            int N = me.length();
            int commonAns = 0;

            for(int i=0; i<N; i++) {
                if(me.charAt(i) == myFriend.charAt(i) ) commonAns++;
            }

            int ans = Math.min(k, commonAns) + Math.min(N - k, N - commonAns);

            System.out.println(ans);

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