As software engineers, we sometimes have to perform certain tasks that can be achieved with a variable number of inputs.