Added a note at the end, clarifying expected output when no partition satisfies the restriction.