Hypergiant interview question

Fix this React app on HackerRank