Variadic function - solution