ambguous permutation

give me the solution of ambiguous permutation by using bufferedinputstream?