There are four kinds of permutations or combinations possible based on whether repetition is allowed…

» DEV Community | dev.to