Project Euler 114 - Counting Block Combinations I

Official link: https://projecteuler.net/problem=114

Harder version of Problem 117 and Problem 116