Count Valid Assembly Orderings — Coding Problem — CareerVerse