* Fix minor code formatting item.
* Ported solution to Python and Perl.