Altimetrik interview question

React concept , Coding round