Zenus Group interview question

Basic pattern Problems to Solve