function findAllOccurrences(arr, target) {
  var a = [];
  for(var i in arr){
    if(arr[i]==target){
      a.push(i);
  		}
   }
  return a ;
}