It looked like it was a simple L-system to me...
V : 1 2
ω : 1
P : (11 -> 21) (2 -> 12) (1 -> 11)
I think that matches the information given in the question. Would that be an "incorrect answer"?
V : 1 2
ω : 1
P : (11 -> 21) (2 -> 12) (1 -> 11)
I think that matches the information given in the question. Would that be an "incorrect answer"?
Your major problem would be finding an interviewer who knows what's an L-System
Edit: you should add the rule 111->31, so it may not be an l-system because there are infinite rules? (1111->41), etc
Or we limit it up to digit 9
That's an issue with any sequence-style problems.