Aleph Labs interview question

It was an assignment in React