MOBIETRAIN interview question

Javascript, React, and an easy string algorithm question.