Make Binary Digits' solution more functional.
Merge pull request #137 from utkarshkukreti/refactor-binary-digits

Make Binary Digits' solution more functional.