Pregunta de entrevista de FusionCharts

Some advanced Coding questions, Overlapping problem, Next greater number with same digits