HCLTech interview question

Frame work explanation Program to substring