extracted Kernel#capture_stdout in a separate file
ruby solution for Decomposing numbers into sum of repdigits + print