Question 18

Given a number N, find the smallest even number E such that E > N and digits in N and E are same.

Print NONE otherwise.

Sample:

Input

N = 34722641

Output

E = 34724126

Input

N = 8234961

Output

E = 8236194 (instead of 8236149)

[advanced_iframe securitykey=”undefined” src=”https://code.kodnest.com/” width=”100%” height=”600″]

KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close