AstraZeneca Interview Question

String manipulation in Python with index