Siemens Mobility Interview Question

Find substrings, OOPs concepts in detail.