Pergunta de entrevista da empresa IoT Inspector

I had to write a digit parser with error checking in React JS.