This program finds the location of the dominating (with required rules) value in an array. It has a time complexity O(N).