Certent interview question

pattern and other math questions