input: Write a python function that calculates the highest potential value for a given periodic function. The function should take three parameters A, B, and N. The objective is to determine the maximum possible value of floor(A * x / B) – A * floor(x / B), where x is a non-negative integer that does not exceed N. Here, floor(T) refers to the greatest integer less than or equal to the real number T.
  assert floor_Max(11,10,9) == 9
  assert floor_Max(5,7,4) == 2
  assert floor_Max(2,2,1) == 1
output: def floor_Max(A, B, N):
      max_value = 0
      for x in range(N + 1):
          current_value = (A * x // B) - A * (x // B)
          if current_value > max_value:
              max_value = current_value
      return max_value