Capgemini interview question

basics of JS and react native