sandwich code solved