Very naive solution using n evaluations