Construct a grammar for the expression of each of the following language [closed]

Construct a grammar for the expression of each of the following language: E = The set of all strings of 0’s and 1’s not containing 101 as a substring. a. C Language b. Java Language