title: Check if two arrays are cyclic permutations
body: <p>Given two arrays, how do you check if one is a cyclic permutation of the other?</p>
  
  <p>For example, given <code>a = [1, 2, 3, 1, 5]</code>, <code>b = [3, 1, 5, 1, 2]</code>, and <code>c = [2, 1, 3, 1, 5]</code> we have that <code>a</code> and <code>b</code> are cyclic permutations but <code>c</code> is not a cyclic permutation of either.</p>
  
  <p>Note: the arrays may have duplicate elements.</p>