title: An algorithm to find the bucket to which the item ID will be assigned
body: <p>A company wishes to bucketize their item IDs for better search operations. The bucket for the item ID is chosen on the basis of the maximum value of the digit in the item ID. Write and algorithm to find the bucket to which the item ID will be assigned.</p>
  <p>Input : the input consists of an integer itemID, representing the identity number of the item.</p>
  <p>Output: Print an integer representing the bucket to which the item ID will be assigned</p>
  <p>I have used python language for solving the same and have taken input as an array of numbers. for example: input &gt;4, 5, 3, 6, 7, 2</p>
  <pre><code>itemID = input(&quot;&gt;&quot;)
  bucket = itemID[0]
  for item in itemID:
      if item &gt; bucket:
          bucket = item
  print(bucket)
  </code></pre>