insertion problem java logic
first working problem interface