Amazon interview question

Write an algorithm to find if a King has been Check-mated.