1 test case not passed


I was not able to include the case when there is no relation between 2 strings and we have to put them in order of their input.Help me adding that case.
(do with dfs only)

@perul1999
Please refer to Kahn’s algorithm once and then try the question again. You will be able to do it quite easily.
Please revert if you face any difficulty.