Refactored solution to SRM630-DoubleLetter