Amazon Interview Question

Arrays/strings , a problem which matched the subset problem but asked in a different way