Nicole reluctantly starts to develop feelings for Cody, a challenge tests the women's brains and the men's brawn, and Katie questions Josh's loyalty.