But you don't hai 1 as code for any symbol codes for symbols are 0 10 110 111 . you have to see the full code of 1 symbol should not the strt or other symbols not only 1 bit of any symbol. Hope it will be clear now
Regarding whether a code is a prefix code, your explanation is not clear. A code is a prefix code if you can draw a binary tree that represents it. In your example, it is not clear how this tree is constructed. It is just shown .