Question: how separation of powers works?
Answer: Separation of powers is a doctrine of constitutional law under which the three branches of government (executive, legislative, and judicial) are kept separate. This is also known as the system of checks and balances, because each branch is given certain powers so as to check and balance the other branches.