Sequence Transformation solved, slow performing