Point72 Interview Question

Easy - arranging array in mentioned format. Medium - Mathematical operations on Array. Hard was on DFA