Infosys interview question

print the fibonacci sequence in a pattern.