Capgemini Engineering Interview Question

Reserved string in python without using any predefined method