Freshworks interview question

Coding round included question related to DSA- pattern based and jump code