basic version
works for naive cases
works for naive cases
sol of q033