lets determine dependencies first
12 comes after 2,13,24
between 2,13,24 any order is possible
62 comes after 12
77 can come anytime(will calculate at last)
82 comes after 62 and 77
91 can come anytime(will calculate at last)
3! for 2,13,24
then 12-62
77 can come anywhere in 6 slots of those 5 numbers
3! * 6
then 82
now 91 can come anywhere in 8 slots
3!*6*8=288
dependencies==>
( (2,13,24)-->12-->62 ) --> 82
77--> 82
91
see 77 can come anywhere before 82
91 has zero restrictions
again calculating......
3! then 12-62
77 can come in 6 slots
then 82
91 can come in 8 slots
3!*6*8=288
please check thoroughly to detect any errors
please check thoroughly to detect any errors
@Bikram@Arjun@saxena0612