Solution for Pad Array