Sprinklr Interview Question

DP on strings and ranges.