title: Given two arrays find the probability that there is an index i such that A[i]=B[i]!
body: <p>The arrays of size n will have values between ranges 0->n-1....</p>
  
  <p>e.g array of size 30 has values between 0 and 29... No repetitions of values...</p>
  
  <p>I coded the probability and the answer for n=3 (i.e 0,1,2) is .66 and for n=30</p>
  
  <p>is .68</p>
  
  <p>my attempt at a solution is this:</p>
  
  <p>suppose n=30;</p>
  
  <p>finding A[I]=B[I] =j for some values of I and j. the probability is 1/30*1/30... The problem is that since I and j can both go from 1-> 30 the answer should be 1... Which is definitely not the case </p>