Module 13 concept array

Concept Array : Module 13 (Next Number)

two edge test are failing and i am trying since more than four days,
guys please help me out

Can you remove the constraint of n > 1e16 and check. (Assume that n can be greater than 1e16)

@krishnadey-crio-ta
in that case we have to return -1 and i have done so

You ignore that for now. Don’t return -1 for that case. Assume that you will be given a number > 1e16

@krishnadey-crio-ta still no change sir, again two edge test are failing

Check for this test case. 72057594037927935

Output should be

108086391056891903
No Number

My edge case 1, 3 and 6 are failing and my program is returning correct for the above input

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.