Pregunta de entrevista de Bloomberg

A few questions about JS inheritance, equalities, react state. Then a coding challenge.