Ad
  • Default User Avatar

    I think it is worth noting that this could give an unexpected answer if two ints of max value are passed in. The problem is not very clear on the range of allowed values for a and b.