Oracle Interview Question

Dynamic programming, Print letter from a word step wise Eg: AMRITA , OUTPUT : A ,AM,AMR,AMRI,AMRITA