Pergunta de entrevista da empresa Ambarella

Detect the leading one in a sequence. Find the second smallest number in an array. Determine whether a infinite sequence is the multiple of 5.