Comcast Interview Question

Permutations