title: Find The Minimum Distance Between Two Numbers
signature: func findTheMinimumDistanceBetweenTwoNumbers(arr []int, n int, x int, y int) int {
source_py: def find_the_minimum_distance_between_two_numbers(arr, n, x, y):
      min_dist = 99999999
      for i in range(n):
          for j in range((i + 1), n):
              if ((((x == arr[i]) and (y == arr[j])) or ((y == arr[i]) and (x == arr[j]))) and (min_dist > abs((i - j)))):
                  min_dist = abs((i - j))
          return min_dist
source_cpp: int find_the_minimum_distance_between_two_numbers(vector<int> arr, int n, int x, int y) {
    int i, j;
    int min_dist = INT_MAX;
    for ( i = 0;
    i < n;
    i ++ ) {
      for ( j = i + 1;
      j < n;
      j ++ ) {
        if ( ( x == arr [ i ] && y == arr [ j ] || y == arr [ i ] && x == arr [ j ] ) && min_dist > abs ( i - j ) ) {
          min_dist = abs ( i - j );
        }
      }
    }
    return min_dist;
  }