Accenture interview question

Rest Vs Spread Class Vs functional