A question about the last recitation

Is this circuit also a correct solution of the first question shown in the last recitation?
(a circuit that its output should be 1 if all the input strings are distinct and 0 otherwise)

Thanks!

NO. How can k FF’s help in comparing with more than one number?