Amazon Interview Question

It was coding assessment about the decryption of a password