PwC interview question

React basics and coding test