PolicyBazaar Interview Question

Sub sequence of string , Two Sumit problem