A string is valid if it can be produced from an empty string by repeatedly inserting the substring "abc" at any position. Given a string s of the letters a, b, c, determine whether it is valid. Return true or false. The input is JSON {s}.
Input: JSON {s}.
Output: Boolean — true or false.
Input: {"s":"aabcbc"}
Output: true
Explanation: Insert abc, then abc inside.Input: {"s":"abcabcababcc"}
Output: true
Explanation: A valid construction exists.Input: {"s":"abccba"}
Output: false
Explanation: Cannot be built from abc inserts.1<=|s|<=10^4letters a,b,c