GoComet interview question

two programing questions to code on array something to find like a sub array