IFDC interview question

1)forward and backward pattern question