The solution of Binance FE test

The question is at here.

Demo page