Cerence AI Interview Question

String manipulation issue in Python, dictionary etc.