ABC Interview Question

add an array and print output