TSMC interview question

three coding tests contain graph, set.