How can I call a function before its definition? Or in other meaning, if we have two functions A and B ,and fucntion A calls B ,then function A calls B. How to do this without errors ,if possible?

I wanted to know that 'cause this is gonna help me a lot