A one-time code is a unique code that is generated for a single use. It is often used as a form of two-factor authentication, where the user must enter the code in addition to their password to access an account or service.
This version use a single input
and a small JavaScript to determine caret-position.