Standard Chartered Bank interview question

Write a code for generating OTP from debit card