PwC Interview Question

First round basic react questions. Second round live coding