How to receive a function as a parameter? | Functions | typescript Interview Questions | NextRound.in