When two murders occur on the same night, Castle bets Ryan and Esposito that he and Beckett can solve their case first.