Design algorithm to count simple paths between two DAG vertices
Given a directed acyclic graph with vertices numbered `0` through `n - 1`, count directed paths from `source` to `target`. The input is a JSON string containing `n`, an `edges` array of directed pairs, `source`, and `target`. Every listed edge is a distinct edge. Parallel edges are allowed and count as distinct path choices.