2-level loop sol most naive cases