diff --git a/Q9/pashmeen Q9 solution b/Q9/pashmeen Q9 solution new file mode 100644 index 0000000..7159026 --- /dev/null +++ b/Q9/pashmeen Q9 solution @@ -0,0 +1,30 @@ +// "static void main" must be defined in a public class. +import java.util.Scanner; +import java.util.HashMap; + + +public class Main { + public static void main(String[] args) { + Scanner s=new Scanner(System.in); + int n=s.nextInt(); + int arr[]=new int[n]; + for(int i=0;i hm=new HashMap(); + for(int i=0;i