input: Write a Python function to determine the highest attainable value for a given periodic function. Given three integers A, B, and N, the goal is to find the maximum possible value of floor(A * x / B) – A * floor(x / B) where x is a non-negative integer less than or equal to N. Here, floor(T) denotes the greatest integer not greater than 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):
          value = (A * x // B) - A * (x // B)
          if value > max_value:
              max_value = value
      return max_value