basic version
sol of q119