Rule. Use this he/him method to decide whether who or whom is correct:
he = who
him = whom
Examples:
Who/Whom wrote the letter?
He wrote the letter. Therefore, who is correct.
Who/Whom should I vote for?
Should I vote for him? Therefore, whom is correct.