tringapps interview question

Mostly theory from Javascript and React