ShopUp Interview Question

Java Programming - patters and some puzzles.