PHP and Javascript solutions to hard challenge #126 - Play with DNA