Solution for Quartets (qrt)