Smallest Valid Task Order — Coding Problem — CareerVerse