@dulqar, bhai problem is not the no. of topological sort, it is that is there any efficient way using combinatorics? i solved it and it took around 4 min. for me to get the answer. i don't want it to happen in exam.
But thanks for your quick reply i appreciate. :)