Snapp (Iran) interview question

algorithm , react js , javascript