Hidoc Dr Interview Question

Oops concept ,string related program