Cubes and Cylinders | HackerRank

Put the maximum number of cubes into cylinders.