You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two?
There are three light switches outside a room. One of the switches is connected to a light bulb inside the room.
Each of the three switches can be either 'ON' or 'OFF'.
You are allowed to set each switch the way you want it and then enter the room(note: you can enter the room only once)
Your task is to then determine which switch controls the bulb?
John drives to his office at 20km/hr. After reaching the office, he realizes that today is a holiday. He went back at an average speed of 30km/hr. Discounting the time spent in the stoppage what was the average speed of his journey?