Pregunta de entrevista de ShopUp

Java Programming - patters and some puzzles.