Snovasys Interview Question

they give 2 Pattern question