Exact solution of a boundary tumbling particle system in one dimension