For this Question: Jenny was walking along the beach on a Sunday evening. She started from a point 0 and wants to reach a point N. What is the probability that she reaches exactly on point N, if she can only take 2 steps or 3 steps? Probability for step length 2 is P and probability for step length 3 is 1 – P.The first line of the input contains n and p.

<b>Constraints</b>
1<= n <= 1e5
0 <= p <= 1Print the final probability upto 2 decimal places.Sample Input 
5 0.2

Sample Output 
0.32, 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));
		String[] str = br.readLine().trim().split(" ");
		int n = Integer.parseInt(str[0]);
		float m = Float.parseFloat(str[1]);
		double[] arr = new double[n+1];
		arr[0] = 1;
		arr[1] = 0;
		arr[2] = m;
		arr[3] = 1-m;
		for(int i = 4; i <= n; ++i) {
			arr[i] = m*arr[i-2]+(1-m)*arr[i-3];
		}
		System.out.printf("%.2f",(float)arr[n]);
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?