GOTESO interview question

Pattern coding