Amazon Interview Question

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