Point72 interview question

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