The code I've written reads 6 strings from the console, finds duplicated ones among them, substitutes them with null and produces the expected output. Why does it still fail validation (in particular, does not meet the 2nd requirement)?