CODECHEF: FLOORI4
HACKERRANK: Cutting boards

https://www.hackerrank.com/challenges/board-cutting