PolicyBazaar interview question

Sub sequence of string , Two Sumit problem