You need to design hash generator service. consisting of 0-9,a-z,A-Z only. HashService(int K) getNextHash(); Constraints:
I suggested an iterator based approach, where new key is generated based on last generated key.
Any better approach.