**Solution:**

Lets name these employees A, B, C and D

1. A chooses any random value and whispers it to B privately

2. B chooses any random value and whispers it to C privately

3. C chooses any random value and whispers it to D privately

4. D chooses any random value and whispers to to A privately

So each employee has two numbers now - incoming and outgoing. Each employee should get own salary, then add the incoming and subtract the outgoing and report the result. Then they should add all reports and divide by 4.

2. B chooses any random value and whispers it to C privately

3. C chooses any random value and whispers it to D privately

4. D chooses any random value and whispers to to A privately

So each employee has two numbers now - incoming and outgoing. Each employee should get own salary, then add the incoming and subtract the outgoing and report the result. Then they should add all reports and divide by 4.

**POST YOUR OPINION IF YOU HAVE BETTER SOLUTION**

## Click Here To add Comment

Your feedback is always appreciated.

I will try to reply to your queries as soon as time allows.

Please do not spam Spam comments will be deleted immediately upon our review.

Blogger Widgets