Scandit interview question

Python exercise on string manipulation and infi extraction