EY interview question

Write a MC method for barrier options in VBA