How to create 6 digit OTP screen using single TextField?

Yes exactly, i am talking about one single textfield where i can enter OTP (passcode kind of screen in 6 square blocks). By the way what do you recommend? Creating 6 different text fields or just one text field?