KPMG interview question

react js and javascript