Recursive Transform Array (Five Pebbles)