Solution to Alice anb Bob problem using C.