wrote printArray<arr.size()>(arr) function using templates.