Optimus interview question

String question to make an encrypted string