Solved the first DNA problem in PHP