Deloitte interview question

Questions on React