Class Assignment

i am not getting the question

HI @Sweta,
You are asked to tell the no of possible strings containing 0 and 1s having no consecutive 1s
Try to compute the string ending with zero and the other ending with 1 separately and compute the answer.