logic to deal with all cases. All the tests pass again.
Attach a file by drag & drop or click to upload