Simulation of stopping time

Simulate standard bounded stopping time with lower and upper barriers
for any user defined function of Brownian Motion and time.