Solve Cubes and Cylinders

Put the maximum number of cubes into cylinders. Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.