MyTyles Interview Question

Javascript and React problem solving.