input: Write a python function to find maximum possible value for the given periodic function.Given three numbers A, B, and N, the task 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_val = float('-inf')
      for x in range(N + 1):
          current_val = (A * x // B) - A * (x // B)
          if current_val > max_val:
              max_val = current_val
      return max_val