input: Write a python function to count active sensors in a ring of sensors where each active sensor has active sensors as neighbors.
  assert countActiveSensors([1, 1, 1, 1, 1]) == 5
  assert countActiveSensors([1, 0, 1, 0, 1]) == 3
  assert countActiveSensors([0, 1, 0, 1, 0]) == 0
output: def countActiveSensors(sensors):
      n = len(sensors)
      count = 0
      for i in range(n):
          if sensors[i] == 1 and sensors[i-1] == 1 and sensors[(i+1) % n] == 1:
              count += 1
      return count