TSMC Interview Question

three coding tests contain graph, set.