Passing a Function into another function as an argument

Like the way we pass compare function to swap function, can we do the same with other functions made by us??

Hello @gaurisha yes you can make your custom compare function and make comparison acoording to you in any other functions.
Happy Learning!!