I was asked to write a code in a function:-
The dominant number is defined as the number that comes after and is greater than a number the user inputted (let\'s call