Meta interview question

2. pattern match with 0 and 1