A man moves one unit distance for each step he takes. He always moves forward, backward, up or down their parallel to the x-axis or y-axis. He starts at the point (0, 0) and reaches the point (1, 1) at the end of six steps. The number of ways he can do it is