Calculate number of ways in which you can decode an encoded string