Aptus Data Labs interview question

Java string redundant characters detection and Cryptographic algorithm in Java