you give array character letter sort nondecrease order character target there different character lettersreturn small character letter lexicographically great target if character exist return character letter Example 1input letter cfj target aOutput cExplanation the small character lexicographically great letter cExample 2input letter cfj target cOutput fExplanation the small character lexicographically great c letter fExample 3input letter xxyy target zOutput xExplanation there character letter lexicographically great z return letters0 constraints2 letterslength 104lettersi lowercase english letterletter sort nondecrease orderletter contain different characterstarget lowercase english letter