How do I implement resend OTP and ask for right OTP If entered OTP is wrong

Yeah!! OTP means one-time password and resend OTP is case when user didn’t receive OTP in that case we need to give option to user like “Resend OTP”. so they can request for OTP second time.