Keross interview question

In coding they basically ask pattern type questions