notes added
majority element solution added