Superhuman Interview Question

complex leet code style questions (graph)