ZS Associates interview question

No such constraint