Implement the following flowchart in java. Start Request integer k from user Generate data Write data to \"output.txt\" Stop no Generate Data Method let n let a array of ers of size n Solution import java.util.*; import java.lang.*; import java.io.*; import java.nio.file.*; import java.io.FileWriter; /* Name of the class has to be \"Main\" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { // your code goes here //write to file called output.txt FileWriter fw = new FileWriter(\"output.txt\"); Scanner in = new Scanner(System.in); int k = in.nextInt(); int []arr = new int[k]; int n = 0; while(n.