Write a predicate in prolog that can parse the string using a difference list.

S–>AB

A–>aA

A–>a

B–>bB

B–>b

example predicate
s(String, []):-

example output
?- s([a,a,a,b,b],[]).
true.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now