Sol for simple problem