Numerical approach for finite volume three-body interaction