A Memory Function Approach to Stochastic Problems in Finance