added solution for pad array