solution for the question using flexsim Attachme

solution for the question using flexsim