Add solution of generic array