InterviewDB Question

Pattern Finding