Solution to Rosalind Challenge Problem 3D