Microsoft Interview Question

Numbers and arrays question. Super simple.