In Time Tec interview question

Basic string based DSA questions