Pergunta de entrevista da empresa athenahealth

Puzzle question about moving a die across a chessboard.