In reply to Naresh Kumar Koppala:
Hi Sir,
I have a few doubts about this.
First, how come it is getting us any answer? There is a clear conflict in the constraint. So when the value of s1 is 1, we should get an error or at least a warning.
The second one is regarding the usage of dist. According to that, the appearance of s1 having value 1 should be frequent.
How does everything actually work?