2189: Number of Ways to Build House of Cards

Problem Statement